home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
c
/
cuj9205.zip
/
1005110A
< prev
next >
Wrap
Text File
|
1992-06-02
|
1KB
|
41 lines
Listing 1
*************
#include <dos.h>
main()
{
union REGS inregs, outregs;
struct SREGS segregs;
static char full_table[256][8] =
{ /* Laboriously set up your desired table */ };
static char one_char_table[8] +
{0XFF,....};
/* Do the full table */
segregs.es = ((long) table) >> 16;
inregs.h.ah = 0x11;
inregs.h.al = 0;
inregs.x.cx = 256;
inregs.x.bp = ( (long) full_table) & 0XFFFF;
inregs.x.dx = 0;
inregs.h.bl = 0;
inregs.h.bh = 8;
int86x( 0x25, &inregs, &outregs , &segregs);
/* Do one character full_table */
segregs.es = ((long) one_char_table) >> 16;
inregs.h.ah = 0x11;
inregs.h.al = 0;
inregs.x.cx = 1;
inregs.x.bp = ( (long) one_char_table) & 0XFFFF;
inregs.x.dx = 0;
inregs.h.bl = 0;
inregs.h.bh = 8;
int86x( 0x25, &inregs, &outregs , &segregs);
}